package com.mallcai.bigdata.ladon.service.report.impl.handler.support.rule;

import java.util.Date;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-20 19:03
 */
public class DateLessThenOperator extends AbstractDateRuleOperator {

    private static final String[] COMMANDS = {"ln", "less then"};

    @Override
    protected boolean innerTest(Date obj1, Date obj2) {
        return obj1.before(obj2);
    }

    @Override
    public String[] getCommands() {
        return COMMANDS;
    }
}
